package com.twh.www.service;

import com.twh.www.entity.WnUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;


public interface WnUserService extends IService<WnUser> {
    WnUser getUserByAccount(String account);
//    WnUser getUserByPhone(String phone);
//    WnUser getUserByEmail(String email);

    boolean insertUser(String account, String password, String telphone, String email, MultipartFile avatar) throws IOException;
    String saveAvatar(MultipartFile file) throws IOException;
    boolean updateUserInfo(WnUser user);

    boolean freezeUser(Integer id);

    boolean unfreezeUser(Integer id);

    boolean addToBlacklist(Integer id);

    boolean removeFromBlacklist(Integer id);

    boolean deleteUser(Integer id);
}
